package com.sdp.right.db.sys_emp_leave.service.impl;

import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sdp.right.db.sys_emp_leave.mapper.SysEmpLeaveMapper;
import com.sdp.right.db.sys_emp_leave.service.ISysEmpLeaveService;
import com.sdp.right.entity.SysEmpLeave;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author zsp
 * @since 2024-07-17
 */
@Service
public class SysEmpLeaveServiceImpl extends ServiceImpl<SysEmpLeaveMapper, SysEmpLeave> implements ISysEmpLeaveService {

	@Override
	public SysEmpLeave queryEmpLeaveByInstanceId(String instanceId) {
		LambdaQueryWrapper<SysEmpLeave> queryWrapper = new LambdaQueryWrapper<>();
		queryWrapper.eq(SysEmpLeave::getInstanceId, instanceId);
		return getOne(queryWrapper);
	}

}
